package com.abel.bigwater.dataserver.model.qdies

import io.netty.buffer.ByteBuf

open class MainLoginData : D10BaseData(6) {
    override var type = FuncType.Login

    override fun fill(buf: ByteBuf) {
        buf.writeBytes(LOGIN_RESP.toByteArray())
    }

    override fun parse(buf: ByteBuf): Boolean {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun count(): Int = len

    companion object {
        const val LOGIN_RESP = "iesd10"
    }
}

class MainHeartData : MainLoginData() {}

class MainAskStateData : DtenEmptyData() {
    override var type = FuncType.AskState
}